#ifndef _CANON_WHITE_H_
#define _CANON_WHITE_H_

#include "Canon.h"
#include "Convert.h"
#include "Text.h"

#define wcStatus WhiteCanonStatus
#define NEXT_STATUS (wcStatus)(currentStatus_ + 1)
#define BACK_STATUS (wcStatus)(currentStatus_ - 1)
#define	SEC_MOVE 2

class CCanon_White : public CCanon
{
private:
	int			currentFrame_;
	bool		isOpened_;
	bool		isClosed_;
	bool		isShooting_;
	wcStatus	currentStatus_;
	int			count_;

	static CText* text_;
public:
	CCanon_White();
	~CCanon_White();
	CCanon_White(D3DXVECTOR3 position);

	void	Update(DWORD deltaTime);
	void	Render();
	void	AI(D3DXVECTOR3 positionPlayer);
	int		HealthyState() { return 1; };
	void	loadSprites();
	void	setStatus(wcStatus status);
	bool	moveStatus(wcStatus status);
	bool	changeStatus(wcStatus status);

	wcStatus	getStatus() {
		return currentStatus_;
	}

	static void setText(CText* text);
};
#endif
